package com.datas
{
	import com.GameModel;
	
	
	/**
	 * 
	 * 专司生成游戏数据
	 * 
	 * 
	 **/
	public class GameData extends Data
	{
		private var _playLayerData:GamePlayLayerData;
		private var _uiLayerData:GameUILayerData;
		
		public function GameData()
		{
			super();
		}
		
		override public function initData(p_level:int=0):void{
			playLayerData.initData(p_level);
		}
		
		override public function createData():void{
			//根据level创建数据
			playLayerData.createData();
			uiLayerData.createData()
		}
		
		private function get playLayerData():GamePlayLayerData{
			if(!_playLayerData)_playLayerData = new GamePlayLayerData;
			return _playLayerData
		}
		
		private function get uiLayerData():GameUILayerData{
			if(!_uiLayerData)_uiLayerData = new GameUILayerData;
			return _uiLayerData;
		}
		
	}
}